
import java.io.FileReader;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author luisegg
 */import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;


import java_cup.runtime.*;

public class Prueba {
    public static void main(String[] args) {
        FileReader fr = LectorEscritorArchivos.getLector("prueba.c");
        AnalizadorLexico al = new AnalizadorLexico(fr);

        Symbol aux = null;

        do{
            try {
                aux = al.next_token();
                System.out.println(aux.sym);
            } catch (IOException ex) {
                ex.printStackTrace();
            }

        }while(aux.sym != 0);
    }
}
